# -*- coding: utf-8 -*-
"""
Created on Sat Jul  9 21:37:33 2016

@author: Administrator
"""
from tkinter import *


def show_message(message=''):
    # show reminder message window
    root=Tk()
    x = (root.winfo_screenwidth() - root.winfo_reqwidth()) / 2
    y = (root.winfo_screenheight() - root.winfo_reqheight()) / 2
    root.geometry("+%d+%d" % (x, y))
    root.protocol('WM_TAKE_FOCUS', root.update )
    root.wait_visibility(root)
    root.minsize(320, 200)  # 窗口大小
    root.attributes('-topmost',1)
    label=Label(root, text=message).pack({"side": "left"})
    button=Button(text="OK", width="20", command=lambda:root.destroy()).pack()
    root.mainloop()

#　showMessage('你好')